#include "lm_gb28_sip.h"
#include "lm_eXosip.h"



lmGbSip::lmGbSip(deviceInfo_st *dInf2)
{
	lmDevInf = dInf2;
	eXosipCla = new lm_eXosip(dInf2);
}

lmGbSip::~lmGbSip()
{
	LOGE("---------~lmGbSip--this[%p]-->\n", this);

	FREE_OBJ(eXosipCla);
}

int lmGbSip::lm_init_sip()
{
	int ret = 0, i = 8;
	do{
		ret = eXosipCla->lm_eXosip_init();
		if(i-- <= 0){
			return -1;
		}
	}while(ret < 0);

	return 0;
}	


int lmGbSip::lm_register_device()
{
	return eXosipCla->lm_eXosip_device_register(3600);
}	

int lmGbSip::lm_event_process(void *gbClientObj)
{
	return eXosipCla->lm_eXosip_event_process(gbClientObj);
}



